package com.engine4cloud.tdf.supervision.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;

/**
 * 字典-响应对象
 *
 * @author wenjie
 * @date 2024-02-29 10:42:47
 */
@Data
@Schema(description = "带父子结构的字典-请求对象")
public class DictChildrenListQueryDTO implements Serializable {

    /**
     * 父编码,root的父编码传“00”即可
     */
    @Schema(description = "父编码，root的父编码传“00”即可", example = "01")
    @NotEmpty(message = "父编码不能为空")
    private String pcode;

    /**
     * 关键字（表名去掉前缀大写，如：表名：dct_sex,keywords：COUNTRY）
     */
    @Schema(description = "关键字，必须大写", example = "COUNTRY")
    @NotBlank(message = "关键字不能为空")
    private String keywords;

}